package com.siam.package_rider.service;

import com.siam.package_merchant.model.param.MerchantWithdrawRecordParam;
import com.siam.package_rider.entity.TbRider;
import com.siam.package_rider.entity.TbRiderWithdrawRecord;
import com.siam.package_rider.model.param.TbRiderWithdrawRecordParam;
import com.siam.package_common.service.CurdService;

import java.util.Map;

/**
 * ---------------------------
 * 骑手提现记录表 (TbRiderWithdrawRecordService)         
 * ---------------------------
 * 作者：  高品
 * 时间：  2025-03-29 18:55:18
 * ---------------------------
 */
public interface TbRiderWithdrawRecordService extends CurdService<TbRiderWithdrawRecord, TbRiderWithdrawRecordParam> {

    /**
     * 审核申请体现商家信息
     *
     * @return
     * @author 高品
     */
    void auditApplyWithdraw(TbRiderWithdrawRecordParam param);

    Map<String, Object> statisticalAmount(TbRiderWithdrawRecordParam param);

    /**
     * 提现失败后置处理
     * @param dbTbRiderWithdrawRecord
     * @param dbTbRider
     */
    void handleWithdrawFail(TbRiderWithdrawRecord dbTbRiderWithdrawRecord, TbRider dbTbRider);
}
